import request from '@/utils/http';

/** 分页查询检测点 */
export const getCheckPointsRequest = (data: object) => {
  return request.post('/checkPoints/getCheckPoints', data);
};

/** 查询检测点 ,用于回显*/
export const getCheckPointsDetailRequest = (data: object) => {
  return request.post('/checkPoints/getCheckPointsDetail', data);
};

/** 暂停-生效中 */
export const pauseOrEffectiverRequest = (data: object) => {
  return request.post('/checkPoints/pauseOrEffective', data);
};

/** 统计检测点数量 */
export const statisticseRequest = (data: object) => {
  return request.post('/checkPoints/statistics', data);
};

/** 添加检测点 */
export const addCheckPointsRequest = (data: object) => {
  return request.post('/checkPoints/addCheckPoints', data);
};

/** 编辑检测点 */
export const editCheckPointsRequest = (data: object) => {
  return request.post('/checkPoints/editCheckPoints', data);
};

/** 报告 */
export const exportRequest = (data: object) => {
  return request.post('/checkPoints/export', data);
};
